﻿using Newtonsoft.Json;

namespace XSot.BitBrowser.LocalApiClient.Model
{
    public class BitBrowserIpLocation
    {
        /// <summary>
        /// IP 地址
        /// </summary>
        [JsonProperty("ip")]
        public string Ip { get; set; } = string.Empty;
        /// <summary>
        /// 国家名称
        /// </summary>
        [JsonProperty("countryName")]
        public string CountryName { get; set; } = string.Empty;
        /// <summary>
        /// 州/省
        /// </summary>
        [JsonProperty("stateProv")]
        public string StateProv { get; set; } = string.Empty;
        /// <summary>
        /// 国家代码
        /// </summary>
        [JsonProperty("countryCode")]
        public string CountryCode { get; set; } = string.Empty;
        /// <summary>
        /// 地区
        /// </summary>
        [JsonProperty("region")]
        public string Region { get; set; } = string.Empty;
        /// <summary>
        /// 城市
        /// </summary>
        [JsonProperty("city")]
        public string City { get; set; } = string.Empty;
        /// <summary>
        /// 语言
        /// </summary>
        [JsonProperty("languages")]
        public string Languages { get; set; } = string.Empty;
        /// <summary>
        /// 时区
        /// </summary>
        [JsonProperty("timeZone")]
        public string TimeZone { get; set; } = string.Empty;
        /// <summary>
        /// 时区偏移量
        /// </summary>
        [JsonProperty("offset")]
        public string Offset { get; set; } = string.Empty;
        /// <summary>
        /// 经度
        /// </summary>
        [JsonProperty("longitude")]
        public string? Longitude { get; set; }
        /// <summary>
        /// 纬度
        /// </summary>
        [JsonProperty("latitude")]
        public string? Latitude { get; set; }
        /// <summary>
        /// 邮政编码
        /// </summary>
        [JsonProperty("zip")]
        public string? Zip { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        [JsonProperty("status")]
        public int Status { get; set; }
        /// <summary>
        /// 是否已使用过
        /// </summary>
        [JsonProperty("used")]
        public bool Used { get; set; }
        /// <summary>
        /// 使用时间
        /// </summary>
        [JsonProperty("usedTime")]
        public DateTime? UsedTime { get; set; } = null;
    }
}
